﻿#if NET4 || WINDOWS_PHONE || ANDROID

#region Assembly System.Windows.dll, v2.0.50727
// C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\System.Windows.dll
#endregion

using System;

namespace System.ComponentModel
{
	/// Summary:
	///     Provides data for the System.ComponentModel.INotifyDataErrorInfo.ErrorsChanged
	///     event.
	public sealed class DataErrorsChangedEventArgs : EventArgs
	{
		readonly string m_PropertyName;
		/// Summary:
		///     Initializes a new instance of the System.ComponentModel.DataErrorsChangedEventArgs
		///     class.
		///
		/// Parameters:
		///   propertyName:
		///     The name of the property for which the errors changed, or null or System.String.Empty
		///     if the errors affect multiple properties.
		public DataErrorsChangedEventArgs(string propertyName)
		{
			m_PropertyName = propertyName;
		}

		/// Summary:
		///     Gets the name of the property for which the errors changed, or null or System.String.Empty
		///     if the errors affect multiple properties.
		///
		/// Returns:
		///     The name of the affected property, or null or System.String.Empty if the
		///     errors affect multiple properties.
		public string PropertyName { get { return m_PropertyName; } }
	}
}

#endif
